<script>
$(function(){
	$('#searchtype').val(INPUT_GET.searchtype);
    $('#keyword').val(INPUT_GET.keyword);
});
</script>
<div class="search">
    <form id='search' method="get">
        <!--<span>
            <select name="searchtype" id="searchtype" class="select1">
                <option>请选择查询类型</option>
                <option value="code">货号</option>
                <option value="product_name">商品名称（慢）</option>
                <option value="systemtype">系统类型</option>
            </select>
        </span>
		
        <span>
            <input type="text" name="keyword" id="keyword" value="" />
        </span>-->
		<span>
         开始时间：<input type="text"  style="width:100px;" id="start_date" name="start_date" value="<?=$this->start_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
	      </span>
         <span>
         结束时间：<input type="text" style="width:100px;" id="end_date" name="end_date"  value="<?=$this->end_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
		</span>
        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>MOD)); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="vacation_id">编号</th>
            <th class="th0" rel="username">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="start_date">开始时间</th>
            <th class="th0" rel="end_date">结束时间</th>
            <th class="th0" rel="audit1_username">审核</th>
            <th class="th0" rel="audit2_username">审批</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->vacation_list as $vacation): ?> 
       <tr>
            <td><?php echo $vacation['vacation_id']; ?></td>
            <td><?php echo $vacation['username']; ?></td>
            <td><?php echo $vacation['nickname']; ?></td>
            <td><?php echo date('Y-m-d',$vacation['start_date']); ?></td>
            <td><?php echo date('Y-m-d',$vacation['end_date']); ?></td>
            <td><?php echo $vacation['audit1_username']?$vacation['audit1_username']:'-'; ?></td>
            <td><?php echo $vacation['audit2_username']?$vacation['audit2_username']:'-'; ?></td>
            <td>
            	<?php echo opt('view','?app='.APP.'&mod='.MOD.'&vacation_id='.$vacation['vacation_id'],' title ="操作" '); ?>
            	<?php echo opt('view','?app='.APP.'&mod=lapse&vacation_id='.$vacation['vacation_id'] ,' title ="销假" '); ?>
            </td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>
<br />


<?php if($this->type=='my'): ?>
	<div style=" text-align:left">
	<b>请假总天数为： </b> <?php echo $this->total_vacation; ?>
</div>
<?php endif; ?>